/**
 * @USER: Administrator
 * @DATE: 2024/9/17 下午9:26
 * @VERSION: 1.0.0
 */
public class LC717 {
    public static void main(String[] args) {

    }

    public boolean isOneBitCharacter(int[] bits) {
        int index = 0;
        while (index < bits.length) {
            if (index == bits.length-1) {
                return true;
            }
            if (bits[index] == 1) {
                index+=2;
            } else if (bits[index] == 0) {
                index++;
            }
        }
        return false;
    }

}
